package com.wiken.storeservice.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 *
 * </p>
 *
 * @author wiken
 * @since 2022-12-28
 */
@Data
@Accessors(chain = true)
@TableName("store_activity")
@ApiModel(value = "StoreActivity对象", description = "")
public class StoreActivity implements Serializable {

    private static final long serialVersionUID = 1L;

    //TODO 为什么要换行？？
    private String
            id;

    private String storeId;

    private BigDecimal amount;

    private BigDecimal discountAmount;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private Integer limited; //0为无限， 1为有限

    private Integer overall; //0为店铺优惠劵 1为全场优惠卷， 全场优惠卷只有管理员才能发放

    private Integer number;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;


}